#include "../../Server.hpp"
int main()
{
    Socket client;
    client.CreateClient(8080,"127.0.0.1");
    std::string req = "GET /hello HTTP/1.1\r\nContent-Length: 0\r\nConnection: keep-alive\r\n\r\n";
    req += "GET /hello HTTP/1.1\r\nContent-Length: 0\r\nConnection: keep-alive\r\n\r\n";
    req += "GET /hello HTTP/1.1\r\nContent-Length: 0\r\nConnection: keep-alive\r\n\r\n";
    while(true){
        assert(client.Send(req.c_str(),req.size()) != -1);    
        char buffer[1024] = {0};
        assert(client.Recv(buffer,1023) != -1);
        DBG_LOG("%s",buffer);
        sleep(5);
    }
    client.Close();
    return 0;
}